import 'classListEntity.dart';

class homeClassEntity {
  List<ClassList> classList;
  int isClassTeacher;

  homeClassEntity({this.classList, this.isClassTeacher});

  homeClassEntity.fromJson(Map<String, dynamic> json) {
    if (json['class_list'] != null) {
      classList = new List<ClassList>();
      json['class_list'].forEach((v) {
        classList.add(new ClassList.fromJson(v));
      });
    }
    isClassTeacher = json['is_class_teacher'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.classList != null) {
      data['class_list'] = this.classList.map((v) => v.toJson()).toList();
    }
    data['is_class_teacher'] = this.isClassTeacher;
    return data;
  }
}

